# str1 = "Hello world!"
# print(str1[-4])
#
# import sys
# print(sys.version)
#
# _ = 10
# str = 10
#
# x=5;y=5;z=5
# print(x)

import random
import string

# x,y = y,x

# x = 13
# print((x % 10) * 10 + x // 10)

# a=10
# def setNumber():
#     a = 100
#     print(a);
# setNumber()
# print(a)

# def swap(list):
#     temp=list[0]
#     list[0]=list[1]
#     list[1]=temp
# list=[1 ,2]
# swap(list)
# print(list)

# str1 = "helloworld"
# print(str1[3])
# print(str1[-3])
# print(str1[0:-3])
# print(str1[:-3])

# a = 'abcd'
# # a[1] = 'e'
# a.replace('a', 'e')
# a = 'e' + a[1:]
# print(a)
# print(a.replace('a', 'e'))

# lambda
# if
# finally

# list1 = ['a', 'b', 'c']
# list2 = list1
# list1.append("de")
# print(list1)
# print(list2)
#
# print(5 / 2)

# pi = 1
# PI = 1

# print(3 + 4j)

# a = 3
# a = 'abcd'
# print(a)

# def get_child(num):
#     lst = []
#     for i in range(1, num):
#         if num % i == 0:
#             lst.append(i)
#     return lst
# if __name__ == '__main__':
#     n = int(input())
#     for i in range(1, n + 1):
#         lst = get_child(i)
#         if i == sum(lst):
#             print('{} == {}'.format(i, '+'.join(map(str, lst))))

# import math
# def prime(x):
#     if x == 1:
#         return False
#     n = int( math.sqrt(x))
#     for i in range(2,n+1):
#         if x % i == 0:
#             return False
#     else:
#         return True
# def prime_substr(num):
#     str_num = str( num)
#     length = len( str_num )
#     lst=[]
#     k=1
#     while k < length:
#         for i in range(length):
#             num_temp = int( str_num[i:i+k])
#             if prime( num_temp ) and i + k <= length:
#                 lst. append( num_temp )
#         k+=1
#     if prime( num):
#         lst. append( num )
#     return lst
#
# if __name__== '__main__':
#     n = int(input())
#     lst = prime_substr(n)
#     s = 0
#     for item in lst:
#         s += item
#     print(s)

# name = input()
# student = []
# while name != '#':
#     student.append(name)
#     name = input()
# random.shuffle(student)
# result = ','.join(student)
# print(result)

# n = random.randint(8, 12)
# a = random.choice(string.ascii_uppercase)
# b = random.choice(string.ascii_lowercase)
# c = random.choice(string.digits)
# n = n - 3
# lst = random.sample(string.ascii_letters+string.digits, n) + [a, b, c]
# random.shuffle(lst)
# print(''.join(lst))

# def fibo(n):
#     if n <= 2:
#         return 1
#     else:
#         return fibo(n - 1) + fibo(n - 2)
# num = int(input("输出几项："))
# if num <= 0:
#     print("输入正数")
# else:
#     print("斐波那契数列：")
#     for i in range(num):
#         print(fibo(i))

# import datetime
# print(datetime.date.today())
# def get_oneday():
#     today = datetime.date.today()
#     day_length = datetime.timedelta(days=5)
#     get_day = today - day_length
#     return get_day
# print(get_oneday())

# import calendar
# monthRange1 = calendar.monthrange(2024, 4)
# monthRange2 = calendar.monthrange(2024, 5)
# monthRange3 = calendar.monthrange(2024, 6)
# print(monthRange1[1] + monthRange2[1] + monthRange3[1])

# str1 = "hello world"
# print(str1.upper())   # 把所有字符中小写变为大写
# print(str1.lower())   # 把所有字符中大写变为小写
# print(str1.capitalize())   # 把第一个字母转换为大写字母，其余小写
# print(str1.title())   # 把每个单词第一个字母转换为大写字母，其余小写

# dec = int(input("输入数字："))
# print("十进制数为：", dec)
# print("转换二进制数为：", bin(dec))
# print("转换为八进制数：", oct(dec))
# print("转换为十六进制数：", hex(dec))

# def extract(s):
#     w  = ''
#     prech = ''
#     lst = []
#     for ch in s:
#         if ch.isdigit():
#             if prech == '-':
#                 w += '-'
#             w += ch
#         else:
#             w += ' '
#         prech = ch
#     lst = w.split()
#     return lst
# lst1 = extract("12sadf-56asfd-sfd34")
# for i in range(len(lst1)):
#     print(lst1[i])
